package com.flow.model;



/**
 * RolePermission entity. @author MyEclipse Persistence Tools
 */

public class RolePermission  implements java.io.Serializable {


    // Fields    

     private Integer rpId;
     private RoleTab roleTab;
     private PermissionMenu permissionMenu;
     private Integer rpInsert;
     private Integer rpDelete;
     private Integer rpUpdate;
     private Integer rpFind;
     private Integer rpStatus;


    // Constructors

    /** default constructor */
    public RolePermission() {
    }
    
    /** default constructor */
    public RolePermission(RoleTab roleTab, PermissionMenu permissionMenu) {
    	this.roleTab = roleTab;
        this.permissionMenu = permissionMenu;
        this.rpInsert = 1;
        this.rpDelete = 1;
        this.rpUpdate = 1;
        this.rpFind = 1;
        this.rpStatus = 0;
    }

    
    /** full constructor */
    public RolePermission(RoleTab roleTab, PermissionMenu permissionMenu, Integer rpInsert, Integer rpDelete, Integer rpUpdate, Integer rpFind, Integer rpStatus) {
        this.roleTab = roleTab;
        this.permissionMenu = permissionMenu;
        this.rpInsert = rpInsert;
        this.rpDelete = rpDelete;
        this.rpUpdate = rpUpdate;
        this.rpFind = rpFind;
        this.rpStatus = rpStatus;
    }

   
    // Property accessors

    public Integer getRpId() {
        return this.rpId;
    }
    
    public void setRpId(Integer rpId) {
        this.rpId = rpId;
    }

    public RoleTab getRoleTab() {
        return this.roleTab;
    }
    
    public void setRoleTab(RoleTab roleTab) {
        this.roleTab = roleTab;
    }

    public PermissionMenu getPermissionMenu() {
        return this.permissionMenu;
    }
    
    public void setPermissionMenu(PermissionMenu permissionMenu) {
        this.permissionMenu = permissionMenu;
    }

    public Integer getRpInsert() {
        return this.rpInsert;
    }
    
    public void setRpInsert(Integer rpInsert) {
        this.rpInsert = rpInsert;
    }

    public Integer getRpDelete() {
        return this.rpDelete;
    }
    
    public void setRpDelete(Integer rpDelete) {
        this.rpDelete = rpDelete;
    }

    public Integer getRpUpdate() {
        return this.rpUpdate;
    }
    
    public void setRpUpdate(Integer rpUpdate) {
        this.rpUpdate = rpUpdate;
    }

    public Integer getRpFind() {
        return this.rpFind;
    }
    
    public void setRpFind(Integer rpFind) {
        this.rpFind = rpFind;
    }

    public Integer getRpStatus() {
        return this.rpStatus;
    }
    
    public void setRpStatus(Integer rpStatus) {
        this.rpStatus = rpStatus;
    }
   








}